package cn.igroup.server.nio.event;

import cn.igroup.server.nio.server.NioServer;

import java.util.concurrent.TimeUnit;

/**
 * @author LONG
 * @date 2018/1/5 17:52
 */
public class ShutdownHook implements Runnable {
    @Override
    public void run() {
        System.out.println("shutdownHook execute start...");
        try {
            //NioServer.stop();
            TimeUnit.SECONDS.sleep(3);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("shutdownHook Finished");
    }
}
